<template>
  <div id="app">
    <keep-alive>
      <router-view v-if="$route.meta.keepAlive"></router-view>
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive"></router-view>
  </div>
</template>

<script>
  import api from './utils/api.js';

export default {
  name: 'app',
  created:function(){
//    window.localStorage.ROLE='{"id": 2,"name":"核心系统"}';
//    api.login("13800000000", "123456");

//    var i = 1;
//    if(i == 1){
//      window.localStorage.ROLE = '{"id": 1,"name":"核心系统","PARTNER_ID":"","BELONG_PLATFORM":"PLATFORM","PARTNER_NAME":""}';
//    }else if(i == 2){
//      window.localStorage.ROLE='{"id":2,"name":"营业部系统","PARTNER_ID":"12081342544093184","BELONG_PLATFORM":"PARTNER","PARTNER_NAME":"广州本部营业部" }';
//    }else if(i == 3){
//      window.localStorage.ROLE='{"id":3,"name":"业务员系统","PARTNER_ID":"12081342544093184","TEAM_ID":"2222","BELONG_PLATFORM":"PARTNER","PARTNER_NAME":"广州本部营业部" }';
//    }


  }
}
</script>
